#pragma once
#include <Windows.h>
POINT GamePosToSreenPos(RECT&& re, int gx, int gy, int x, int y);

std::string wstring2string(std::wstring& wstr);
std::wstring string2wstring(std::string str);
std::string GetCurrentDir();
void WriteFileFromData(std::string filepath, std::string data);
std::wstring TimeToBuf(DWORD t);
std::string ANSIToUTF8(const std::string& str);
std::string UTF8ToANSI(const std::string& str);
DWORD64 GetMillisecondTime();
DWORD  CdTimeToMillisecond(float second);